<?php

namespace App\Models\Extension;

use Illuminate\Database\Eloquent\Model;

/**
 * @property string code
 * @property string type
 * @property string setting_code
 * @property mixed|null|string status
 * @property mixed|null|string app_id
 * @property mixed|null|string sort_order
 * @property mixed|null|string icon
 */
class Extension extends Model
{
    const CODE_SLIDE_SHOW = 'slideshow'; // 幻灯片
    const CODE_LATEST = 'latest'; // 最新的商品
    const CODE_BANNER = 'banner'; // 横幅
    const CODE_FEATURED = 'featured'; // 推荐商品 (插件管理中可指定对应商品)
    const CODE_PANX_APP_ICON_LINK = 'panx_app_icon_link'; // App自定义区块
    const CODE_SPECIAL = 'special'; // 特价商品
    const CODE_BESTSELLER = 'bestseller'; // 热销商品
    const CODE_PRESS_LATEST = 'press_latest'; // 最新新闻

    protected $table = 'extension';
    protected $guarded = [];

    const CODE_PAYMENT_WECHAT = 'wechat_pay';
    const CODE_PAYMENT_ALI = 'alipay';
    const CODE_PAYMENT_ALI_GLOBAL = 'alipay';
    const CODE_PAYMENT_PAYPAL = 'pp_express';
    const CODE_PAYMENT_COD = 'cod';

}
